package com.xomily.devops.agent.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * @version V1.0
 * @ClassName:DevDiscLog.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: DevDiscLog.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class DevDiscLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 磁盘id */
    private Long discId;

    /** Ip */
    private String ip;
    
    /** 名称 */
    private String name;
    
    /** 大小 */
    private double size;

    /** 已用 */
    private double used;

    /** 使用率 */
    private double useRate;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDiscId(Long discId) 
    {
        this.discId = discId;
    }

    public Long getDiscId() 
    {
        return discId;
    }
    
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSize(double size) 
    {
        this.size = size;
    }

    public double getSize() 
    {
        return size;
    }
    public void setUsed(double used) 
    {
        this.used = used;
    }

    public double getUsed() 
    {
        return used;
    }
    public void setUseRate(double useRate) 
    {
        this.useRate = useRate;
    }

    public double getUseRate() 
    {
        return useRate;
    }
    public void setGenerateTime(Date generateTime) 
    {
        this.generateTime = generateTime;
    }

    public Date getGenerateTime() 
    {
        return generateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("discId", getDiscId())
            .append("size", getSize())
            .append("used", getUsed())
            .append("useRate", getUseRate())
            .append("createTime", getCreateTime())
            .append("generateTime", getGenerateTime())
            .toString();
    }
}
